import {request} from '../utils/request.js';
import user from '../common/user.js';

// 用户
const prefix = "/utils"

/**
 * 文件上传
 * @param file 文件
 */
export const uploadApi = (file)=>{
	
	return request("POST",prefix+"/upload",file,{"Content-Type": "multipart/form-data",authorization:user.token,checktoken:true},true);
}